﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace Peninsula.Site.Data.Helper
{
    public class CommonSelectItems
    {
        public static IEnumerable<SelectListItem> GetYesNoAllowNull()
        {
            return new List<SelectListItem>()
            {
                new SelectListItem { Text = "请选择", Value = "", Selected = true },
                new SelectListItem { Text = "是", Value = true.ToString() },
                new SelectListItem { Text = "否", Value = false.ToString() },
            };
        }

        public static IEnumerable<SelectListItem> GetSex()
        {
            return new List<SelectListItem>()
            {
                new SelectListItem { Text = "男", Value = true.ToString() },
                new SelectListItem { Text = "女", Value = false.ToString() },
            };
        }
    }
}
